package com.example.back.jpa;

import com.example.common.entity.RoleAdmin;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;
import org.javers.spring.annotation.JaversSpringDataAuditable;

@JaversSpringDataAuditable
public interface SysRoleAdminRepository extends JpaRepository<RoleAdmin, Long>, JpaSpecificationExecutor<RoleAdmin> {



    /**
     * 根据角色id查询关联帐号
     * @param uId
     * @return
     */
    List<RoleAdmin> findByUid(Long uId);



}
